package com.example.administrator.hqq.fragment.discover;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.blankj.utilcode.util.ActivityUtils;
import com.example.administrator.hqq.R;
import com.example.administrator.hqq.activity.dating.DatingListActivity;
import com.example.administrator.hqq.base.MyFragemnt;
import com.example.administrator.hqq.utils.BoldTextUtils;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * A simple {@link Fragment} subclass.
 * 非常规模块页面
 */
public class UnConventionalityFragment extends MyFragemnt {


    @BindView(R.id.dating)
    ImageView dating;
    @BindView(R.id.love_corner)
    TextView loveCorner;
    @BindView(R.id.dating_auto)
    AutoRelativeLayout datingAuto;
    @BindView(R.id.coming_soon)
    TextView comingSoon;
    @BindView(R.id.coming_soon1)
    TextView comingSoon1;
    @BindView(R.id.coming_soon2)
    TextView comingSoon2;
    @BindView(R.id.coming_soon3)
    TextView comingSoon3;
    Unbinder unbinder;
    private View inflate;
    private String TAG = this.getClass().getSimpleName();

    public UnConventionalityFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        inflate = inflater.inflate(R.layout.fragment_un_conventionality, container, false);
        unbinder = ButterKnife.bind(this, inflate);
        initview();
        return inflate;
    }

    private void initview() {
        BoldTextUtils.BoldText(loveCorner);
        BoldTextUtils.BoldText(comingSoon);
        BoldTextUtils.BoldText(comingSoon1);
        BoldTextUtils.BoldText(comingSoon2);
        BoldTextUtils.BoldText(comingSoon3);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick({R.id.dating_auto})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.dating_auto:
                Intent intent = new Intent(getContext(), DatingListActivity.class);
                startActivity(intent);
                break;
        }
    }
}
